package com.UnionPayCenter.mapper;

import com.UnionPayCenter.base.MyMapper;
import com.UnionPayCenter.entity.ComponentGrantInfoEntity;
import com.UnionPayCenter.entity.vo.ComponentGrantInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ComponentGrantInfoMapper extends MyMapper<ComponentGrantInfoEntity> {

    ComponentGrantInfoEntity selectByShop(@Param("shopId") Integer shopId);

    List<ComponentGrantInfoVo> findAuthList(@Param("status") Integer status, @Param("appName") String appName);

    List<ComponentGrantInfoEntity> selectToExamine();

    List<ComponentGrantInfoEntity> selectToRelease();

    int updateToWaitCommit();
}
